ostree_builtin_pull: consistently set free-function on refs_to_fetch
authorSimon McVittie <smcv@debian.org>
Sun, 30 Oct 2016 14:12:02 +0000 (14:12 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 30 Oct 2016 21:37:38 +0000 (21:37 +0000)
commit213d5013cec6abe61c3500c1bffceff1a42d5509
tree2d28e6ec641248727086a08e66c367df1343d5f2
parent22ed96d23cc1ffadb30e119a0677036348707f52
ostree_builtin_pull: consistently set free-function on refs_to_fetch

We are relying on the GPtrArray to free its contents, but we only
give it a free-function on one code path.

Found by valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #559
Approved by: cgwalters
src/ostree/ot-builtin-pull.c